class UrlMappings {
  static mappings = {
    // "/$username"(controller: "account", action: "showName")
    "/$username"(controller: "status", action: "list")
    "/$username/ajaxStatus"(controller: "status", action: "ajaxStatus")
    "/$username/status/$id"(controller: "status", action: "show")
    "/replies"(controller: "status", action: "replies")
    "/public_timeline"(controller: "status", action: "publicTimeline")
    "/$username/friends"(controller: "account", action: "friends")
    "/$username/followers"(controller: "account", action: "followers")
    "/icon/$username "(controller: "icon", action: "view")
    "/smallicon/$username "(controller: "icon", action: "smallView")

    "/$controller/$action?/$id?" {
      constraints {
        // apply constraints here
      }
    }
    "/"(controller: "status", action: "timeline")
    "500"(view: '/error')
    "404"(view: '/404')
    "/searchable"(view: '/404')
  }
}
